package org.labj;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

public class Main {
    public static void main(String[] args) {
        int p = 5;
        List<Integer> u = Arrays.asList(1, 2, 1, 3, 4, 1, 2, 2, 2, 4, 1, 0, 0, 4, 1, 1, 0, 1, 3, 1, 1, 3, 4, 0, 3, 1, 3, 0, 4, 3, 1, 1, 3, 1, 0, 1, 1, 4, 0, 0, 1, 4, 2, 2, 2, 1, 4, 3, 1, 2);
        List<Integer> v = Arrays.asList(0, 2, 0, 3, 3, 1, 1, 2, 1, 4, 0, 0, 4, 4, 0, 1, 4, 1, 2, 1, 0, 3, 3, 0, 2, 1, 2, 0, 3, 3, 0, 1, 2, 1, 4, 1, 0, 4, 4, 0, 0, 4, 1, 2, 1, 1, 3, 3, 0, 2);
        List<Map<Integer, Integer>> corr = PArySeqPair.getCorr(p, u, v);
        System.out.println("u.size() = " + u.size());
        System.out.println("corr.size() = " + corr.size());
        List<Map<Integer, Integer>> distinctCorr = corr.stream().distinct().collect(Collectors.toList());
        int values = distinctCorr.size();
        System.out.println("values = " + values);
        for (Map<Integer, Integer> map : distinctCorr) {
        }
    }
}
